Page({
  data: {
    nodes: [{
      name: 'div',
      attrs: {
        class: 'wrapper',
        style: 'color: orange;',
      },
      children: [{
        type: 'text',
        text: 'Hello&nbsp;World!',
      }],
    }],
  },
  tap() {
    console.log('tap');
  },
  no(){
     dd.showToast({
        content:"Text富文本组件暂时只能在支付宝小程序中使用",
        // type: 'success',
        duration: 3000,
        success() {
          console.log('toast end');
        },
      });
    
  },
  showToast(){
    dd.showToast({
        content: '轻提示',
        type: 'success',
        duration: 9000,
        success() {
          console.log('toast end');
        },
      });
  },
  hideToast(){
    dd.hideToast({
      success() {
        console.log('toast hide');
      },
    });
  },
  onLoad() {},
});
